package com.eastdigit.bpm.formType;

import org.activiti.engine.form.AbstractFormType;

public class CodeFormType extends AbstractFormType{
    private static final long serialVersionUID = 1L;
    
    private String codeType = null;
    
    public CodeFormType(String codeType){
        this.codeType = codeType;
    }

    public String getName() {
        return "code";
    }

    public String getMimeType() {
        return "text/plain";
    }

    public String getCodeType() {
        return codeType;
    }

    public void setCodeType(String codeType) {
        this.codeType = codeType;
    }

    public Object convertFormValueToModelValue(String propertyValue) {
        return propertyValue;
    }

    public String convertModelValueToFormValue(Object modelValue) {
        return (String) modelValue;
    }
}
